<form id="testdata_setting_form" action="{% url 'problem_mgr_save_testdata_setting' problem.id %}" method="post">
    <input type="hidden" name="handle" value="{{ td.handle }}"/>
    <div class="input-group">
        <div class="input-group-addon">名称</div>
        <input type="text" class="form-control" name="name" value="{{ td.name }}">
    </div><br />
    <div class="input-group">
        <div class="input-group-addon">评测顺序</div>
        <input type="text" class="form-control" value="{{ td.order | default:'1' }}" name="order">
        <div class="input-group-addon">从1开始</div>
    </div><br />
    <div class="input-group">
        <div class="input-group-addon">占分百分比(作业)</div>
        <input type="text" class="form-control" value="{{ td.score_precent | default:'0' }}" name="score_precent">
        <div class="input-group-addon">%</div>
    </div><br />
    设置0表示则只有整体AC时才给分，单步正确不给分。<br />同时，各组数据的百分比总和不能超过100。
    <br /><br />
    <div class="input-group">
        <div class="input-group-addon">启用 <input type="checkbox" value="1" name="available" {% if td.available %}checked{% endif %}/></div>
        <div class="input-group-addon">学生可见<input type="checkbox" value="1" name="visible" {% if td.visible %}checked{% endif %}/></div>
    </div><br />
</form>